import { UserAccountData } from "./UserAccountData"
import { UserAddressData } from "./UserAddressData"
import { UserMobileData } from "./UserMobileData"
import { UserWechatData } from "./UserWechatData"

/**
 * 用户性别
 */
export enum UserSex{
    UNKNOWN = '0',
    BOY = '1',
    GIRL = '2'
}
/**
 * 用户状态
 */
export enum UserStatus{
    ON = '1',
    OFF = '2'
}

/**
 * 用户权限
 */
export enum UserRole{
    /**
     * 普通
     */
    NORMAL ='1',
    /**
     * 代理
     */
    AGENCY = '2'
}
export interface UserData{
    
    id: number

    isGameing?:boolean

    diamond:number

    money:number

    nickName: string

    sex: UserSex
    
    password?: string

    avater?: string

    loginAddress?: string

    isdel?: number

    remarks?: string

    loginTime?:Date

    registerTime?:Date
 
    account?: UserAccountData

    mobile?: UserMobileData

    wechat?: UserWechatData

    address?: UserAddressData
}